
// 实体类型
export interface Consumption {
    recordId: number
    memberId: number
    consumptionType: string
    amount: number
    consumptionDate: string
    relatedId: number
}

// 分页请求数据:下拉框和搜索框搜索的东西
export interface PageConsumption {
    recordId: number | null
    memberId: number | null
    consumptionType: string
    page: number
    pageSize: number
}

// 分页请求响应数据
interface PageRespInfo{
    total: number
    records: Consumption[]
}

// 分页请求响应
export interface PageResp {
    code: number
    message: string
    data: PageRespInfo
}

// 获取记录响应
export interface GetConsumptionResp {
    code: number;
    message: string;
    data: Consumption;
}


// 购买（添加）记录
export interface AddConsumption {
    memberId: number
    consumptionType: string
    amount: number
    relatedId: number
}
// 添加成功响应
export interface AddConsumptionResp {
    code: number;
    message?: string;
    data?: object;
}

// 个人消费记录
export interface PersonalConsumption {
    consumptionType: string
    amount: number
    consumptionDate: string
}

export interface PersonalConsumptionResp {
    code: number
    message?: string
    data: PersonalConsumption[]
}